home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 160 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.0 KB  |  44 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: netnews.upenn.edu!dsinc!scala!darren
  3. From: darren@scala.scala.com ("Darren M. Greenwald")
  4. Subject: Re: QBlit() waits for blitter to finish... ??
  5. Message-ID: <1996Jan3.194458.9030@scala.scala.com>
  6. Date: Wed, 3 Jan 1996 19:44:58 GMT
  7. References: <4c1v3q$hhs@wumpus.cc.uow.edu.au> <4cb2kv$4ku@news.rwth-aachen.de>
  8. Organization: US Research and Development - Scala Inc.
  9.  
  10. In article <4cb2kv$4ku@news.rwth-aachen.de> svent@informatik.rwth-aachen.de (Sven Thoennissen) writes:
  11. >beato@wumpus.cc.uow.edu.au (Michael Beaton) writes:
  12. >
  13. >
  14. >>Hi,
  15. >>    I'm trying to use QBlit() and it doesn't seem to work like I thought it
  16. >>would. My understanding was that I could call QBlit() with a bltnode and it
  17. >>would return after it had put the bltnode in the queue. Then when the blitter
  18. >>has finished, my task would be interrupted and the next bltnode in the queue 
  19. >>would be processed and my task would continue. 
  20. >>    Could someone please explain how QBlit() should work, if it works how
  21. >>I thought it should, then at least I'll know its something I've done wrong.
  22. >
  23. >hi michael,
  24. >
  25. >yes I think thats the way QBlit goes. I dont have the rkm right here now,
  26. >but an inner voice says to me that your process is to be notified somehow
  27. >if your bltnode is done. I don't know how, got to look it up at home.
  28. >
  29.  
  30. He is basically correct.  The blitnode has an optional cleanup routine,
  31. but in most every case you will end up needing to use it to signal the task
  32. or at least set a flag that the blit is done.  Note though that for
  33. small to medium blits it could be that the everything is done fast
  34. enough that QBlit() returns after the blit is done.  This is more likely
  35. true if there are no other queued blits waiting in the queue (and of
  36. course that is the common case) and the blit is relatively small. 
  37.  
  38.  
  39. -- 
  40. -----------------------------------------------------------
  41. Darren M. Greenwald         | Scala Inc. R&D            /
  42. Senior Systems Engineer     | darren@scala.com         o
  43. -----------------------------------------------------------
  44.